﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;

using Infrastructure.Core.Common;
using SMG.Application.DTO.System;

namespace SMG.ServiceContract.System
{
    /// <summary>
    /// 公共服务接口
    /// </summary>
    [ServiceContract]
    public interface ICommonService
    {
        /// <summary>
        /// 添加一个系统字典项
        /// </summary>
        /// <param name="dictDto"></param>
        /// <returns></returns>
        Boolean AddDictItem(SysDictDto dictDto);
        /// <summary>
        /// 更新字典项
        /// </summary>
        /// <param name="dictDto"></param>
        /// <returns></returns>
        Boolean UpdateDictItem(SysDictDto dictDto);
        /// <summary>
        /// 根据字典key获取字典项
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        SysDictDto GetDictByKey(String key);
    }
}
